<template>
  <div class="goods-header-warp">
    <div class="goods-header">
      <div class="left">
        <a class="left-item" @click="goIndex">首页</a>
      </div>
      <div class="right">
        <span class="right-item">请登录</span>
        <span class="right-item">注册</span>
        <span class="right-item">购物车</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    goIndex() {
      this.$router.push({
        name: 'index'
      });
    }
  }
};
</script>

<style lang="less" scoped>
  .goods-header-warp {
    min-width: 1200px;
    height: 36px;
    line-height: 36px;
    background-color: #2e2828;
    justify-content: center;
    display: flex;
    .goods-header {
      width: 1200px;
      display: flex;
      justify-content: space-between;
      .left {
        .left-item {
          color: #afafaf;
          margin-right: 8px;
          font-size: 12px;
          cursor: pointer;
        }
      }
      .right {
        display: flex;

        .right-item {
          color: #afafaf;
          margin-right: 8px;
          font-size: 12px;
          cursor: pointer;
        }
      }
    }
  }
</style>